
public class Node<T> {
	private T info;
	private Node<T> next;
	Node(T x, Node<T> next){
		this.setInfo(x);
		this.setNext(next);
	}
	Node(T info){
		this.setInfo(info);
		this.setNext(null);
	}
	public T getInfo() {
		return info;
	}
	public void setInfo(T info) {
		this.info = info;
	}
	public Node<T> getNext() {
		return next;
	}
	public void setNext(Node<T> next) {
		this.next = next;
	}
	public String toString(){
		return this.info.toString();
	}

}
